package com.neuedu.spring.dao;


import org.springframework.stereotype.Component;

//声明需要在Bean工厂中注册的对象
@Component(value="UserDao")    //需要在Bean容器中注册 Component  Bean的名字默认为 类名
public class UserDao  implements  IUserDao{

    public void sayHi(){
        System.out.println("UserDao.sayHi");
    }
}
